﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

public partial class FrontEnd_Blocks_Bookmark : System.Web.UI.UserControl
{
    public XmlNodeList items;

    protected void Page_Load(object sender, EventArgs e)
    {
        String pageOwnerID = Request.Params.Get("ID");
        if (pageOwnerID == null)
            pageOwnerID = Session["LoginUser"].ToString();
        String url = Server.MapPath(Util.ServerPath.UserData + pageOwnerID + "/Module.xml");
        //String url = Server.MapPath("~/UserData/HuyNVK/Module.xml");// this.Page.ResolveUrl("~/UserData/HuyNVK/Module.xml");
        BLO.User Owner = BLO.User.GetUser(pageOwnerID);
        Util.XMLOption xml = new Util.XMLOption(url);
        XmlNode module = xml.SelectNodes("/Modules/Module[@name='Bookmark']").Item(0);
        items = module.ChildNodes;
    }
}
